package com.qf.entity;

/**
 * --- 就那样---
 *
 * @author zzw
 * @date 2025/8/16
 * @desc
 */
//前端的实体类

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 一般实体类是根据表建的
 */
public class User {
    int id;
    String username;
    double score;
    @DateTimeFormat(pattern = "yyyy-mm-dd") Date birthday;
    int sex;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", score=" + score +
                ", birthday=" + birthday +
                ", sex=" + sex +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public double getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }
}